<template />
<script>
export default {
  name: 'Home',
  created() {
    const info = this.$store.getters.user.info
    if (info) {
      let obj = info
      if (typeof info === 'string') {
        obj = JSON.parse(info)
      }
      if (obj.roles && obj.roles.length > 0) {
        debugger
        if (obj.roles[0].roleType !== 'e036_05') {
          debugger
          this.$router.push('/dashboard')
        } else {
          this.$router.push('/dataQuery/realtimeData')
        }
      }
    }
    // this.$route.meta.title = '要修改的内容'
  }

}
</script>
